package com.yss;

import com.yss.config.RouterConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Router extends RouterServer {

    @Autowired
    private RouterConfig routerConfig;

    @Override
    public List<Object> forwarding(Object params) {
        return commonHandle(routerConfig.getRuleAdaptersMapper(), params);
    }
}
